<?php
/**
 * Created by PhpStorm.
 * User: tj
 * Date: 2017/6/27
 * Time: 15:47
 */


namespace app\Index\controller;
use think\Controller;
use \think\Request;


class Radio extends Controller
{
    /*
        * 首页显示以及获取列表
        */
    public function index(Request $request){




        $Request=Request::instance()->param('keywords','pagesize');








        echo 111; die;
        if (empty($keywords)){
            $keywords='告白气球';
        }
        if (empty($pagesize)){
            $pagesize=10;
        }
        $musicList=ajaxList($keywords, $pagesize);
        $this->assign('list',json_encode($musicList));
        $this->fetch();




    }

    /*
     * 歌词处理
     */
    public function lyric(){
        $hash=I('hash');
        $timelength=I('timelength');
        $lrc=file_get_contents("http://m.kugou.com/app/i/krc.php?cmd=100&hash=".$hash."&timelength=".$timelength);
        print_r($lrc);
        exit();
    }



}



